<template>
    <el-button @click="showDialog">显示弹窗</el-button>
    <add-dialog v-model:visible="addVisible" :queryData="form">
    </add-dialog>
</template>

<script lang='ts' setup>
import { reactive, toRefs } from 'vue'
import addDialog from './dialog.vue'
const state = reactive({
    addVisible: false,
    form: {}
})
let { addVisible, form } = toRefs(state)
const showDialog = () => {
    addVisible.value = true
}
</script>
<style lang="scss" scoped>
</style>